﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RunRecord.aspx.cs" Inherits="Webcar.Car.RunRecord" %>

<%@ Register Src="../Controls/NaviBar.ascx" TagName="NaviBar" TagPrefix="uc1" %>
<%@ Register Src="../SearchPanel.ascx" TagName="SearchPanel" TagPrefix="uc2" %>
<%@ Register Assembly="WebPager" Namespace="DevCenterNew" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>特种车辆无功运行记录</title>
</head>
<body style="overflow-y:hidden"> 
    <form id="form1" runat="server">
    <div>
        <uc1:NaviBar ID="NaviBar1" runat="server" />
        <uc2:SearchPanel ID="SearchPanel1" runat="server" OnSearchClick="Seach_Click" />
        
        
        <asp:GridView ID="GridView1" runat="server" DataKeyNames="id" AutoGenerateColumns="False" Width="100%" SkinID="gridviewSkin" OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting">
            <Columns>
                
                <asp:TemplateField>
                <ItemTemplate>
                    <asp:Image ID="Image1" ImageUrl="~/App_Themes/Default/image2/newpost2.gif" runat="server" />
                </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="所属单位">
                    <ItemTemplate>
                        <asp:HyperLink ID="linkDeptName" ToolTip="点击查看该单位的所有无功运行记录" runat="server" NavigateUrl="" Text='<%# Eval("dept_name") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="牌照号">
                    <ItemTemplate>
                        <asp:HyperLink ID="linkRecordNo" ToolTip="点击查看该车的所有无功运行记录" runat="server" NavigateUrl="" Text='<%# Eval("record_no") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:BoundField DataField="driver_name" HeaderText="驾驶员" />
                <asp:BoundField DataField="run_date_s" HeaderText="运行时间" />
                <asp:BoundField DataField="run_place" HeaderText="运行地点" />
                
                
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:HyperLink ID="linkEdit" ToolTip="" runat="server" NavigateUrl="" Text='编辑'></asp:HyperLink>
                        <asp:LinkButton ID="DeleteBtn" runat="server" Text = "删除" CommandName = "Delete"
                         CommandArgument='<%#Bind("id")%>'></asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                
                
            </Columns>
        </asp:GridView>
        <div class="pager">
        
            
            <div style="text-align:left;float:left;padding-top:5px">
                [<asp:LinkButton ID="linkPrint" runat="server" Text="查看打印页" OnClick="linkPrint_Click"></asp:LinkButton>]
                <asp:HyperLink ID="HyperLink1" NavigateUrl="" runat="server">增加运行记录</asp:HyperLink>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 <asp:CheckBox ID="cbNew" runat="server" Visible = "false" Text = "查看新派车记录"  />
            </div>
            
             <cc1:WebPager Width="400px" ID="WebPager1" runat="server" DisplayText="<span style='color: black'>第{0}页&nbsp共{1}页&nbsp总计{2}条&nbsp每页{3}条</span>"  />
            
        </div>
    </div>    
    </form>
</body>
</html>